package ktc.cn.ktc_base.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

public class TbUlPK implements Serializable {
    private String userid;
    private String labelid;

    @Column(name = "userid")
    @Id
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Column(name = "labelid")
    @Id
    public String getLabelid() {
        return labelid;
    }

    public void setLabelid(String labelid) {
        this.labelid = labelid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbUlPK tbUlPK = (TbUlPK) o;
        return Objects.equals(userid, tbUlPK.userid) &&
                Objects.equals(labelid, tbUlPK.labelid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userid, labelid);
    }
}
